<?php
/* 
 * Copyright (c) 2018-2021   All rights reserved.
 * 
 * 创建时间：2021-11-03 08:16
 *
 * 项目：rm  -  $  - footerHtm.php
 *
 * 作者：liwei 
 */
?>
<style>
    .page-content .page-content-inner {max-width: 1440px !important;}
</style>

<script>

jQuery(function () {
    LevfmFieldsJs.init();

    jQuery(document).on('change', LevfmFieldsJs.inputtype(1), function () {
        LevfmFieldsJs.inputtypeChange();
    });
});

var LevfmFieldsJs = {
    init:function () {
        LevfmFieldsJs.inputtypeChange(true);
    },
    inputtypeChange:function (init) {
        LevfmFieldsJs.hiddenx(init);
        var cls = '.formFieldBox.field-settingsmodel-settings__set_';
        var val = LevfmFieldsJs.inputtype().val();
        if (LevfmFieldsJs.inputtype().length < 1) {
            return;
        }
        var obj = Levme.jQuery(cls + val);
        if (obj.length < 1) {
            if (val === 'slides') {
                obj = Levme.jQuery(cls + 'uploadimg');
            }else if (val.toLowerCase().indexOf('select') >=0) {
                obj = Levme.jQuery(cls + 'textSelect');
            }else if (val.indexOf('Form') > 0) {
                obj = Levme.jQuery(cls + 'tablesForm');
            }
        }
        obj.removeClass('hiddenx');
    },
    hiddenx:function (init) {
        if (init) {
            Levme.jQuery('.formFieldBox').each(function () {
                jQuery(this).attr('class').indexOf('settings__set_') > 0 && jQuery(this).addClass('hiddenx settings__set_');
            });
        }else {
            Levme.jQuery('.settings__set_').addClass('hiddenx');
        }
    },
    inputtype:function (obj) {
        return Levme.jQuery('.field-settingsmodel-inputtype select', obj);
    }
};
</script>
